<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>秒杀商品维护</title>
    <!-- jquery -->
    <script type="text/javascript" th:src="@{/js/jquery.min.js}"></script>
</head>
<body>
    <div>
        <input type="text" id="keyword" placeholder="请输入关键词">
    </div>
    <div class="portlet-body">
        <table id="userDataTable" class="table table-bordered table-striped dt-responsive" width="100%">
            <thead>
                <tr>
                    <th></th>
                </tr>
            </thead>
            <tbody></tbody>
        </table>
    </div>
    <button id="seBtn" onclick="seBtnSo()">查询</button>

    <script>
        function seBtnSo(){
            let keyword = $("#keyword").val();
            $.ajax({
                url:"/seckillGoods/getSeckillGoodsList",
                data:{
                    keyword: keyword,
                    PageInfoDTO:{
                        curPage:1,
                        perCount: 10
                    }
                },
                type:"get",
                success:function(data){
                    alert(data)
                },
                error: function(){

                }
            });
        }

    </script>
</body>
</html>